package edu.sctu.alex.June.day20150621;

import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

/**
 * Created by alex on 2015/6/21.
 */
public class Login extends JFrame implements ActionListener {

        JButton btn1; //��Ӱ�ť
        JButton btn2;
        JLabel admin;
        JLabel word;
     public Login() {
         btn1 = new JButton("登陆");
         btn2 = new JButton("取消");
         admin = new JLabel("用户名：");
         word = new JLabel("密码:");
         add(admin);
         add(word);
         add(btn1);
         add(btn2);
         setLayout(new FlowLayout());
         setSize(250,250);
         setVisible(true);
         btn1.addActionListener(this);
         btn2.addActionListener(this);



     }

    @Override
    public void actionPerformed(ActionEvent e) {

    }

    public static void main(String[] args) {
        Login login = new Login();
    }
}
